﻿@using YanForum.Engine.ViewModels
@model UserOptions

<div class="row" >
    <div class="col-md-12">
        @using (Html.BeginForm("ManageAccount", "AccountAdmin", new { area = "Admin" }, FormMethod.Get, new { @class = "form-horizontal" }))
        {
            <div class="form-group">
                <div class="col-md-1">
                    <label style="line-height: 33px; text-align:right; float:right">Từ khóa</label></div>
                <div class="col-md-2">@Html.TextBoxFor(r => r.Search, new { @class = "form-control" })</div>
                <div class="col-md-1">
                    <label style="line-height: 33px; text-align:right; float:right">Role</label></div>
                <div class="col-md-2">
                    @Html.DropDownListFor(m => m.RoleId, Model.ListRole.Select(r => new SelectListItem
                        {
                            Selected = Model.RoleId == r.RoleId,
                            Text = r.RoleName,
                            Value = r.RoleId.ToString()
                        }), "-- Tất cả --", new { @class = "form-control" })
                </div>
                <div class="col-sm-1 col-sm-offset-1">
                    <input type="submit" class="btn btn-success" value="Search" />
                </div>
               @* <div class="col-sm-offset-1 col-sm-2">
                    <a href="#" class="btn btn-info">Thêm tài khoản mới</a>
                </div>*@
            </div>
        }
    </div>
</div>
